package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.CopyrightAuctionRound;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.CopyrightAuctionRecordUserListVO;
import com.sc.nft.entity.vo.CopyrightAuctionRoundAdminVO;
import com.sc.nft.entity.vo.CopyrightAuctionRoundUserListVO;
import com.sc.nft.entity.vo.CopyrightAuctionWinListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 版权拍卖轮次 Mapper 接口
 * </p>
 *
 * @author liGen
 * @since 2024-09-12
 */
@Mapper
public interface CopyrightAuctionRoundMapper extends BaseMapper<CopyrightAuctionRound> {


    /**
     * 当前用户参与记录 轮次
     * @param mp
     * @param copyrightAuctionRecordId
     * @return
     */
    List<CopyrightAuctionRoundUserListVO> copyrightAuctionRoundUserList(@Param("copyrightAuctionRecordId") Long copyrightAuctionRecordId,@Param("userId") Long userId);

    List<CopyrightAuctionRoundAdminVO> copyrightAuctionRoundAdminList(@Param("copyrightAuctionRecordId") Long copyrightAuctionRecordId);

    List<CopyrightAuctionWinListVO> auctionWinList(@Param("id") Long id);
}
